# Set TIMEOUT to be 15 seconds
TIMEOUT 15
# Abort on ERROR
ABORT 'ERROR\r'
# Abort on NO CARRIER
ABORT 'NO CARRIER\r'
# Send the initial AT command
SAY 'Reset the modem ...'
'' 'ATZ\r'
# Initialize the modem
SAY 'Initialize the modem ...'
'OK\r' 'AT\r'
# Set GPRS APN
SAY 'Set the APN ...'
'OK\r' 'AT+CGDCONT=1,"IP","$APN"\r'
# Start dailing
SAY 'Start dialing $NUMBER ...'
'OK\r' 'ATD$NUMBER\r'
# Wait for the CONNECT command
'CONNECT\r' ''
SAY 'Successfully connected!'
